<%@page import="beans.VentaServicioBean"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ page import="beans.FormData"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
String isLoginF = (String)request.getSession().getAttribute("isLogin");
FormData fdata = new FormData();
if(request.getSession().getAttribute("FormData") != null){
	fdata = (FormData) request.getSession().getAttribute("FormData");
}
%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>...::: SQL-DDL :::...</title>
		<link rel="stylesheet" href="<%=request.getContextPath()%>/recurso/style.css">
	</head>
	<body>
		<%@ include file="/jsps/menu.jsp" %>
		<!-- Contenido principal -->
		<h1>SQL DDL</h1>

		<%if(isLoginF != null && isLoginF.equals("true")){ %>
		
		<form action="<%=request.getContextPath()%>/LoadDDL" method="post">
			<table>
				<tr>
					<th align="left">SQL:</th>
					<td>
						<textarea name="sentence" rows="10" cols="40"></textarea>
					</td>
				</tr>
				<tr>
					<td colspan="2" align="right"><input type="submit" value="Ejecutar" /></td>
				</tr>
			</table>
		</form>
		 <%} %>
		 
		 <%if(fdata.getError() != null){ %>
			<h1 style="color: red;"><%=fdata.getError() %></h1>
		<%}else if(fdata.getMsgOK() != null){%>
			<h1 style="color: green;"><%=fdata.getMsgOK() %></h1>
		<%}%>

		 <%@ include file="/jsps/footer.jsp" %>		
	</body>
</html>
